Testing a help system of a computer software application without executing the computer software application

ABSTRACT

A help editor tests context-sensitive help for graphical controls of dialog boxes of a computer software application without executing the computer software application. The help editor receives and manages a file containing context-sensitive help information text for particular graphical controls. The help editor creates a map of graphical control identifiers to associated help information identifiers. A temporary help file includes the map as well as the context-sensitive help information text. The help editor displays a dialog box of a computer software application. When a user selects a graphical control of the displayed dialog box, the help editor receives a help request. In response, the help editor passes to an operating system help display system a reference to the temporary help file. The operating system help display system causes to be displayed context-sensitive help information for the selected graphical control.

RELATED APPLICATION DATA

This application is a division of U.S. patent application Ser. No. 08/792,533, filed Jan. 31, 1997, now U.S. Pat. No. 5,933,139, Aug. 3, 1999 entitled "Method and Apparatus for Creating Help Functions."

FIELD OF INVENTION

The present invention relates to providing context sensitive help for a computer software application. Specifically, the present invention pertains to testing a context-sensitive help system of a computer software application without executing the computer software application.

BACKGROUND OF THE INVENTION

When computer software is created, it is desirable to create a set of help functions that are included with the computer software. The help functions explain various components of the computer software using text and graphics. They can be invoked by a user when the user has a question about the functionality of a particular computer software component or encounters a problem with the computer software during use.

Many computer operating systems such as Windows 95 and Windows NT by Microsoft Corporation of Redmond, Wash. and others use dialog boxes in windows created by the operating system to display help information. A dialog box is a pop-up box which displays additional information for a user and typically contains one or more graphical objects such as graphical buttons that can be selected. Several windowed operating systems such as Windows 95 and Windows NT also provide a context-sensitive help system. A context-sensitive help system allows a user to select with a mouse or other pointing device a graphical control in a dialog box, and then with another selection request help on the graphical control. A graphical control is typically a graphical button, pull-down menu, or other graphical entity that accepts input from a user (e.g., a "click" from a mouse). An example of a graphical control is an Object Linking and Embedding (OLE) control or an ACTIVEX control known to those skilled in the art. For more information on OLE controls see OLE Controls Inside Out, by Adam Denning, Microsoft Press, Redmond, Wash., 1995. In response to the selection of a graphical control, an operating system help system typically displays a pop-up box containing help information that describes the control's purpose.

During the software development process, help functions are written by help writers, and the remaining portions of the computer software are created by software developers. Help writers are typically responsible for creating the information source files which contain the help information, and assigning unique help function identifiers to help components being developed. The software developers use the help information and help function identifiers as they create a computer software application. In some instances, the help writers and the software developers may be the same individuals.

Incorporating help functions into computer software presents some difficult problems. The graphical controls used within the computer software may change many times during the software development process. Some controls may be added or changed while other controls are removed. The help writers and software developers have to coordinate these changes. The help writers have to update existing help information and help function identifiers based on the changes to the graphical controls. In addition, help writers may have to create additional help information and help function identifiers for the new controls. Software developers also have to update their source code to reflect any changes made by the help writers. If the help writers or software developers do not coordinate their changes, the help functions in the computer software created will not function properly.

Another problem with creating help functions is that multiple help functions may be created that use the same non-unique help identifier for a single graphical control. In this case, the help system will not be able to display correct help information for such a control. Yet another problem associated with creating help functions is that certain graphical controls require special handling. For example, the "OK" and "CANCEL" controls are typically displayed as graphical buttons in a dialog box and have default help information provided by the windowed operating system. As a result, help writers typically do not provide help information or help identifiers for such controls and may not properly coordinate any changes with the software developers that may be required to the corresponding help functions for such controls.

Yet another problem associated with creating help functions is that some dialog boxes with graphical controls cannot be viewed when a computer software application is executed. For example, some dialog boxes may only be displayed if optional software components are installed. As a result, the computer software application may contain help functions and help identifiers that will never be used.

Yet another problem associated with creating help functions is that it is not possible for help writers to immediately test new help functions. The new help functions and the computer software which contain the help functions both have to be completed before any testing can occur.

Yet another problem associated with creating help functions is that complex computer software may contain hundreds of controls in numerous dialog boxes. A help writer may create help information or assign a help identifier to a help function that already exits, while a software developer may use two or more types of help information or help identifiers for the same control. This may create confusion for the help system as well as a software developer trying to use the help functions.

SUMMARY OF THE INVENTION

In accordance with an illustrative embodiment of the present invention, the problems associated with testing a context-sensitive help system of a computer software application are overcome.

In an illustrative embodiment, a help editor tests context-sensitive help for software components (e.g., graphical controls of dialog boxes) of a computer software application without executing the computer software application. Because testing occurs without executing the computer software application, the computer software application can be under development or otherwise incapable of execution in its current form. Moreover, because the help editor interacts with the context-sensitive help system in the same manner as the finished computer software application will, the help editor effectively tests the help system through simulation.

Context-sensitive help information describes the software components of a computer software application. The context-sensitive help information can include help text descriptions for particular software components as well as help information identifiers for those help text descriptions.

The help editor maps the software components to the context-sensitive help information, creating a map data structure. For example, the help editor associates identifiers of software components with particular help information identifiers. The help editor then prepares a help file comprised of, for example, the map and the context-sensitive help information. The help file can be temporary.

The help editor displays one or more software components of the computer software application. When a software component is incapable being displayed, the help editor can modify the software component to prepare it for display. A user can then select a displayed software component.

The help editor receives a help request to display context-sensitive help for a software component. For example, in response to a user selecting a software component, an operating system sends a help request for the software component to the help editor.

The help editor reacts to the help request based upon the help file. For example, the help editor causes to be displayed the requested context-sensitive help information. According to one embodiment of the present invention, the help editor passes a reference to the help file to an operating system help display system, which then displays the requested context-sensitive help information. The reference can be a pointer to the map of software components to help information. In an alternative embodiment, the help editor displays the requested context-sensitive help information in a pop-up window without interacting with an operating system help display system.

The help editor in an illustrative embodiment of the present invention includes a novel construction of modules: a dialog-box-extraction-module for locating dialog boxes of a computer software application; a dialog-box-creation-and-display-module which creates and displays a dialog box, including graphical controls within the dialog box; a dialog-box-data-organization-module which organizes and manipulates dialog box data, including data for the properties of graphical controls of the dialog box, and which saves the graphical control data to a control object map; a help-topic-creation-module which organizes help information; and an on-demand testing module which presents context-sensitive help information for graphical controls of the dialog box without executing the computer software application.

The foregoing and other features and advantages of an illustrative embodiment of the present invention will be more readily apparent from the following detailed description, which proceeds with reference to the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of a computer system used to implement an illustrative embodiment of the present invention.

FIG. 2 is a flow diagram illustrating a method for creating help functions in an illustrative embodiment of the present invention.

FIG. 3 is a block diagram illustrating a help editor for creating help functions in an illustrative embodiment of the present invention.

FIG. 4 is a flow diagram illustrating the locating of dialog box templates in an illustrative embodiment of the present invention.

FIG. 5 is a flow diagram illustrating the creation of help information in an illustrative embodiment of the present invention.

FIG. 6 is a flow diagram illustrating change tracking of dialog boxes in an illustrative embodiment of the present invention.

FIG. 7 is a flow diagram illustrating on-demand help testing in an illustrative embodiment of the present invention.

FIG. 8 is a flow diagram further illustrating on-demand help testing in an illustrative embodiment of the present invention.

FIG. 9 is a flow diagram illustrating source code generation for help functions in an illustrative embodiment of the present invention.

DETAILED DESCRIPTION OF AN ILLUSTRATIVE EMBODIMENT

Referring to FIG. 1, an operating environment for an illustrative embodiment of the present invention is a computer system 10 with a computer 12 that comprises at least one high speed processing unit (CPU) 14, in conjunction with a memory system 16, an input device 18, and an output device 20. These elements are interconnected by a bus structure 22.

The illustrated CPU 14 is of familiar design and includes an ALU 24 for performing computations, a collection of registers 26 for temporary storage of data and instructions, and a control unit 28 for controlling operation of the system 10. Any of a variety of processors, including those from Digital Equipment, Sun, MIPS, IBM, Motorola, NEC, Intel, Cyrix, AMD, Nexgen and others are equally preferred for CPU 14. Although shown with one CPU 14, computer system 10 may alternatively include multiple processing units.

The memory system 16 includes main memory 30 and secondary storage 32. Illustrated main memory 30 is high speed random access memory (RAM) and read only memory (ROM). Main memory 30 can include any additional or alternative high speed memory device or memory circuitry. Secondary storage 32 takes the form of long term storage, such as ROM, optical or magnetic disks, organic memory or any other volatile or non-volatile mass storage system. Those skilled in the art will recognize that memory 16 can comprise a variety and/or combination of alternative components.

The input and output devices 18, 20 are also familiar. The input device 18 can comprise a keyboard, mouse, pointing device, audio device (e.g., a microphone, etc.), or any other device providing input to the computer system 10. The output device 20 can comprise a display, a printer, an audio device (e.g., a speaker, etc.), or other device providing output to the computer system 10. The input/output devices 18, 20 can also include network connections, modems, or other devices used for communications with other computer systems or devices.

As is familiar to those skilled in the art, the computer system 10 further includes an operating system and at least one application program. The operating system is a set of software which controls the computer system's operation and the allocation of resources. The application program is a set of software that performs a task desired by the user, making use of computer resources made available through the operating system. Both are resident in the illustrated memory system 16.

In accordance with the practices of persons skilled in the art of computer programming, the present invention is described below with reference to acts and symbolic representations of operations that are performed by computer system 10, unless indicated otherwise. Such acts and operations are sometimes referred to as being computer-executed. It will be appreciated that the acts and symbolically represented operations include the manipulation by the CPU 14 of electrical signals representing data bits which causes a resulting transformation or reduction of the electrical signal representation, and the maintenance of data bits at memory locations in memory system 16 to thereby reconfigure or otherwise alter the computer system's operation, as well as other processing of signals. The memory locations where data bits are maintained are physical locations that have particular electrical, magnetic, optical, or organic properties corresponding to the data bits.

The data bits may also be maintained on a computer readable medium including magnetic disks, and any other volatile or non-volatile mass storage system readable by the computer 12. The computer readable medium includes cooperating or interconnected computer readable media, which exist exclusively on computer system 10 or are distributed among multiple interconnected computer systems 10 that may be local or remote.

In an illustrative embodiment of the present invention, the computer system 10 preferably uses the Windows 95 client/server operating system. However, other client/server operating systems (e.g. WINDOWS NT, WINDOWS CE, by Microsoft Corporation, OS/2, by IBM, etc.) could also be used. A client/server operating system is an operating system which is divided into multiple processes of two different types: server processes, each of which typically implements a single set of services, and client processes, which request a variety of services from the server processes. Object oriented programming is used to design the client/server operating system, and applications which run under the client/server operating system, where objects represent system resources.

For example, the Windows 95 client/server operating system provides shareable resources, such as files, memory, processes and threads, which are implemented as "objects" and are accessed by using "object services." As is well known in the art, an "object" is a data structure whose physical format is hidden behind an object type definition. Data structures, also referred to as records or formats, are organization schemes applied to data so that it can be interpreted, and so that specific operations can be performed on that data. Such data structures impose a physical organization on the collection of data stored within computer memory 16 and represent specific electrical, magnetic or organic elements.

An "object type," also called an "object class," comprises a data-type, services that operate on instances of the data type, and a set of object attributes. An "object attribute" is a field of data in an object that partially defines that object's state. An "object service" implements and manipulates objects, usually by reading or changing the object attributes. "Object oriented design" is a software development Technique in which a system or component is expressed using objects.

An object typically has two components: a function table containing a pointer to each object member function (i.e., sometimes known as an object method) defined in the object's class, and a data block containing the current values for each object variable (i.e., data members, sometimes known as object properties). An application has some reference to an object through an object pointer. An application obtains this object reference by using some type of function call (direct or implied) in which that function allocates an object block in computer memory, initializes the function table, and returns the reference to the computer memory to an application. The computer memory may be local or distributed on a remote computer.

The Windows 95 operating system allows users to execute more than one program at a time by organizing the many tasks that it must perform into "processes." The operating system allocates a portion of the computer's resources to each process and ensures that each process's program is dispatched for execution at the appropriate time and in the appropriate order.

In an illustrative embodiment of the present invention, processes are implemented as objects. A computer software application is executed on computer system 10 as a process. A process object comprises the following elements: an executable program; a private address space; system resources (e.g., communication ports and files) that the operating system allocates to the process as the program executes; and at least one "thread of execution." A "thread" is the entity within a process that the operating system kernel schedules for execution. As is well known in the art, each thread has an associated "context" which is the volatile data associated with the execution of the thread. A thread's context includes the contents of system registers and the virtual address belonging to the thread's process. Thus, the actual data comprising a thread's context varies as it executes.

The Component Object Model (COM) and Distributed Component Object Model (DCOM) are models used for object-oriented programming. The COM and DCOM specify how objects within a single application or between applications (e.g. client/server applications) interact and communicate by defining a set of standard interfaces. Interfaces are groupings of semantically related functions through which a client application accesses the services of a server application. Object Linking and Embedding (OLE), such as OLE Version 2 and ACTIVEX Controls (network activation controls) by the Microsoft Corporation of Redmond, Wash., are based in part on the Component Object Model and allow the creation of objects of different formats which operate on data through defined interfaces, rather than operating on the applications responsible for the data. ACTIVEX controls are based in part on OLE technologies. Object data can be embedded within an object, or linked to it, so that only a link reference to the data is stored in the object.

In accordance with an illustrative embodiment of the present invention, a method and apparatus for creating context-sensitive help functions is used. Context-sensitive help allows a user to select a software component that has been displayed on a display device and then request help on the function of the displayed software component. For example, a computer software application may have a dialog box with multiple graphical control objects for which context sensitive help is displayed. A dialog box is a pop-up box which displays additional information about the computer software application for a user. A graphical control object is an object which displays a graphical component such as a graphical button, graphical menu, or other graphical entity that accepts input from a user (e.g., allows the graphical object to be selected). An example of a graphical control object is an Object Linking and Embedding (OLE) control or an ActiveX control known to those skilled in the art. For more information on OLE controls see OLE Controls Inside Out, by Adam Denning, Microsoft Press, Redmond, Wash., 1995.

FIG. 2 illustrates a method 34 for creating help functions in an illustrative embodiment of the present invention. Method 34 is implemented in a dialog box help editor which is executed on computer system 10. A computer software application for which context-sensitive help functions are being created need not be complete or executable to use method 34. A set of dialog boxes contained within a computer software application are located at step 36. In response to a first selection input, a dialog box from the set of located dialog boxes is displayed on a display device at step 38. The displayed dialog box typically includes one or more graphical control objects. In response to a second selection input, a help function template for a graphical control object selected in the displayed dialog box is created at step 40. The selection inputs at steps 38-40 are typically made in response to inputs made by a user with a mouse or other pointing device. In an alternative embodiment of the present invention, the selection inputs are made by another computer software application executing on the local computer system 10, or a remote computer system (e.g., with a message or a function call). Help information data is received and incorporated into the help function template for the selected graphical control object at step 42. In an illustrative embodiment of the present invention, the help information data is input by a help writer. In an alternative embodiment of the present invention, the help information data is read from a file, or sent by another computer software application. Computer source code for a context-sensitive help function for the selected graphical control object is generated at step 44. The source code is generated automatically and includes the help information data received for the help function template. Each of the steps of method 34 are explained below.

FIG. 3 is a block diagram of a dialog-box-help-editor 46 which uses method 34 to create context-sensitive help functions. The dialog-box-help-editor 46 comprises the following components: a dialog-box-extraction-module 48, a dialog-box-creation-and-display-module 50, a dialog-box-data-organization-module 52, a help-topic-creation-module 54, a dialog-box-change-tracking-module 56, an on-demand-help-testing-module 58, and a dialog-box-code-generation-module 60. However, more or fewer modules could also be used. In addition, the functionality of one or more of modules 48-60 could be combined into one or more of modules 48-60, or the illustrative modules 48-60 could be split into additional modules. Dialog-box-help-editor 46 is used on computer system 10 to create context-sensitive help functions.

Dialog-box-extraction-module

A computer software application that is being developed may have one or more dialog boxes with one or more graphical controls. When a help writer desires to create a context-sensitive help function for a graphical control in a dialog box, the dialog-box-help-editor 46 is used. A user or other entity (e.g., another computer software application) selects a computer software application from the dialog-box-help-editor 46. The computer software application is used to perform a desired function (e.g., network communications) on computer system 10. In response to a selection input, a dialog-box-extraction-module 48 in the dialog-box-help-editor 46 locates at step 36 any dialog boxes in the selected computer software application that is being created. The computer software application need not be complete or executable to use dialog-box-help-editor 46.

FIG. 4 is a flow diagram showing a method 64 for locating dialog boxes at step 36 in accordance with the present invention. The dialog boxes are located without executing the computer software application which contains the dialog boxes. Dialog boxes are typically defined by dialog box templates. A dialog box template is a data structure that defines a dialog box and any graphical control objects it may contain. Information on dialog box templates can be found in the Win32 Application Programming Interfaces (APIs) by Microsoft Corporation. For more information on Win32 APIs see the Microsoft Corporation documentation. However dialog box templates other than those defined by the Microsoft Corporation's Win32 APIs could also be used. To ensure that a help writer is provided access to any dialog boxes in a selected computer software application, dialog box templates are located by searching two types of files associated with a computer software application without executing the application. However, more than two types of files could also be searched.

Returning to FIG. 4, dialog box templates are located with dialog-box-help-editor 46 from dialog-box-extraction-module 48 by searching computer software applications stored as executable image files at step 66. An executable image file is a file that an operating system is able to execute on a computer system (e.g., an .EXE or Dynamic Link Library, or .DLL file executed on computer system 10). The dialog-box-extraction-module 48 locates dialog box templates in executable images at step 66 by searching for pre-defined published Win32 "executable file" APIs. Win32 executable file APIs are known to those skilled in the art.

Dialog box templates are also searched for in resources files (.RES) at step 68. A resource file is a binary-format file compiled from a human readable text file (.RC) that contains resources (e.g., as dialog box captions). A resource file may also be part of an executable image file. The dialog-box-extraction-module 48 locates dialog box templates in resource files at step 68 by searching through resource files following the pre-defined published Win32 "resource file" APIs. However, other searching methods could also be used to locate dialog boxes.

The dialog-box-extraction-module 48 does not make a copy of any dialog box templates it locates. Instead, it uses Win32 file memory mapping and stores the starting address location for dialog box templates in a dialog box search data structure at step 70 for later access. It also stores other relevant information such as dialog box captions and dialog box IDentifiers (IDs) in the dialog box data search structure as it searches files at steps 66-68. Pseudo-code for an illustrative dialog box search data structure is shown in Table 1 below.

                  TABLE 1                                                          ______________________________________                                                Dialog.sub.-- box.sub.-- search.sub.-- data.sub.-- structure {                 Address of dialog box template                                                 Dialog box ID                                                                  Dialog box caption                                                              other information fields                                                      } [N];                                                                  ______________________________________                                    

The text"[N]" indicates an array of "N" instances of the dialog box search data structure. However, more or fewer fields in the dialog box search data structure could also be used. In an alternative embodiment of the present invention, located dialog box templates are copied and stored in the dialog box data search structure shown in Table 1 by the dialog-box-extraction-module 48 and the Win32 file memory mapping is not used to locate the dialog box templates. The search steps 66-68 are completed without executing the computer software application which contains the dialog boxes.

Dialog-box-creation-and-display-module

When the dialog-box-help-editor 46 receives a selection input to display a dialog box at step 38, a dialog-box-creation-and-display-module 50 retrieves the address of a dialog box template for the selected dialog box. The selection input can come from a user (e.g., with a mouse click) or from another software application. The selected dialog box is located by retrieving the address of a corresponding dialog box template stored in the dialog box search data structure (Table 1) by the dialog-box-extraction-module 48. The dialog-box-creation-and-display-module 50 makes a copy of the retrieved dialog box template in memory. The dialog-box-creation-and-display-module 50 then modifies the dialog box template to include attributes required to ensure that the dialog box is visible to a user and can be moved about a display screen easily (e.g., dialog box size in display coordinates, etc.).

For a graphical control object to be displayed in a dialog box, its object class has to have been registered with the operating system. The object class for a graphical control object includes the display color, display cursor type, the message handler to be used for the control, and other object information. The dialog box creation and control module 50 automatically checks for unregistered controls and registers them. Once the dialog box template has been prepared in memory with controls registered, the dialog-box-creation-and-display-module 50 passes the dialog box template to the Win32 API used by the operating system (e.g., with CreateDialogIndirectParam) to create a dialog box user on a display device for a user. In an alternative embodiment of the present invention, the dialog-box-creation-and-control-module 50 creates the dialog box on a display device for a user without passing the dialog box template to the operating system.

Dialog-box-data-organization-module

Whenever the dialog-box-help-editor 46 displays a dialog box with the dialog-box-creation-and-display-module 50, it also creates an instance of an object containing object properties for any graphical control objects in the selected dialog box. The graphical control object properties are stored in a dialog object data structure and are managed by a dialog-box-data-organization-module 52. Pseudo-code for fields in the dialog object data structure is shown below in Table 2.

                  TABLE 2                                                          ______________________________________                                         dialog.sub.-- object.sub.-- data.sub.-- structure {                            Dialog box ID.                                                                 Dialog box caption.                                                            Control ID.                                                                    Control caption.                                                               Help ID associated with the control.                                           Help ID stored in the dialog template for the control (if                      any).                                                                          Number (value) associated with the Help ID.                                    Coordinates of the rectangle that bounds the control.                          Object class name for the control.                                             Whether or not the control is static (i.e., static controls don                 not accept input from a user not do they provide any                           output to a user. A label is an example of a static                            control).                                                                     Whether or not the control has been clicked by the user.                       Whether or not the control has a default Help topic (e.g., an                   "OK" or "Cancel" graphical button).                                           Whether or not the control has changed since the last time                     the dialog box help editor project was opened.                                 Annotation a user has assigned to the control (if any).                        ______________________________________                                    

However, more or fewer object properties could also be stored in the dialog object data structure.

Once the dialog-box-help-editor 46 has created a dialog object data structure (Table 2) with the dialog-box-data-organization-module 52, it adds the graphical control object information for the dialog box to a control object map for later use. The control object map is a keyed list of graphical control objects in the dialog box. A combination of the dialog box ID and the control ID are used to create a unique key for each graphical control object in the control object map. However, other keys can also be used. The control object map is used to locate an individual graphical control object within a dialog box and is used by a help writer who is creating context-sensitive help functions.

In order to preserve the current state of a computer software application when it is closed, the dialog-box-help-editor 46 allows a user to save the control object managed by the dialog-box-data-organization-module 52 to a file. The dialog-box-help-editor 46 updates the control object map each time a dialog box is opened. (See the Dialog-box-change-tracking-module section below.)

Help-topic-creation-module

The dialog-box-help-editor 46 uses OLE Automation to drive development of context-sensitive help functions. OLE Automation provides the ability for a client software application to have a reference to an object in a server software application on the same computer system 10, even though the two applications are not sharing the process memory. For more information on OLE Automation see Inside OLE, 2nd Edition, by Kraig Brockschmidt, Microsoft Press, 1995. However, other automation methods could also be used.

In response to a selection input of a graphical control at step 40, the dialog-box-help-editor 46 creates a new help topic template using a help-topic-creation-module 54. The help-topic-creation-module 54 automatically assigns a Help ID (e.g., IDH₋₋ X₋₋ Y) for the help topic template to a selected control by using a combination of the dialog box ID (X) and the control ID (Y) to ensure uniqueness. For example, if the dialog box ID is 100 and the control ID is 102, the Help ID for the selected control would become a combination of the two (e.g., IDH₋₋ 100₋₋ 102). However, other methods may also be used for assigning Help IDs. A user may choose to assign his or her own ID to a control by using the custom Help ID option available in the help-topic-creation-module 54. For example, a user may create a Help ID for a graphical button as IDH₋₋ BUTTON.

FIG. 5 illustrates a method 72 for creating a context-sensitive help function for a graphical control object with the dialog-box-help-editor 46 at steps 40-42. The help-topic-creation-module 54 locates the selected control in the control object map (created by the dialog-box-data-organization-module 52) at step 74. Before creating a new context-sensitive help topic template, the help-topic-creation-module 54 checks to see if a help topic template already exists for the graphical control at step 76. If the help topic template does not exist, then an instance of a new help topic template is created at step 78. Creating a new help topic template includes creating a new Help ID for the selected graphical object control as was described above. The help-topic-creation-module 54 uses the Help ID for the selected control and creates a "footnote" for the help topic template using the Help ID as the footnote's identifier at step 80. Using object properties for the graphical control object, the help-topic-creation-module 54 adds "hidden" text to the footnote for the help topic template that includes the dialog box caption, the graphical control object caption, and the graphical control object's class name at step 82. The hidden text is used by a help writer to determine which dialog box and graphical object control are associated with the help topic template and are not typically displayed for a user. The help-topic-creation-module 54 applies a "bookmark" to the context-sensitive help topic template at step 84 to enable the dialog-box-help-editor 46 to locate the help topic template quickly and easily at a later time.

Help information data is received for the help topic template at step 42. The help information data is typically input by a help writer but may be read from a file or received from another computer software application. The dialog-box-help-editor 46 incorporates the help topic template with the appropriate help information data at step 86. The help topic template with the received help information data will be used to generate computer source code for a context-sensitive help function at step 44 as will be explained below.

If a help topic template already exists (i.e., was previously created using method 72) for the graphical control object at step 76, the help-topic-creation-module 54 instructs the dialog-box-help-editor 46 to jump to the bookmark for the existing help topic template at step 88. The existing help topic template can then be edited to change existing help information data.

Dialog-box-change-tracking-module

Each time the dialog-box-help-editor 46 displays a dialog box at step 38, it checks for any changes made to graphical control objects for the dialog box by comparing dialog box object data it has saved with dialog box object data in the current copy of the computer software application. The dialog-box-help-editor 46 uses a dialog-box-change-tracking-module 56 to track dialog box changes. As is shown in FIG. 6, the dialog-box-change-tracking-module 56 uses method 90 to track changes in dialog boxes. A selected dialog box template is located using stored locations from step 36 at step 92. If the dialog-box-change-tracking-module 56 finds that a graphical control object has changed in a selected dialog box at step 94, it marks a change attribute in the dialog object data structure (Table 2) at step 96. At step 98, the dialog-box-change-tracking-module 56 indicates that the dialog box has changed when the dialog box is displayed at step 38 by highlighting the selected dialog box (e.g., with a new display color).

To keep context-sensitive help information synchronized with the current executable image or resource files that comprise a computer software application, the dialog-box-change-tracking-module 56 updates the control object map as it is checking for changes in the dialog box at step 100. The control object map was created by the dialog-box-data-organization-module 52 discussed above. Upon a selection request at step 102, the dialog-box-change-tracking-module 56 highlights the graphical controls that have changed. If desired at step 102, the dialog box tracking module 56 displays detailed information about the changes made to a graphical control at step 104.

On-demand-help-testing-module

To allow help writers to see the help information they are writing as it will appear in the finished application, the dialog-box-help-editor 46 is able to create a temporary help file and implement context-sensitive help in a dialog box that it is currently displaying with an on-demand-help-testing-module 58. The context-sensitive help is displayed without executing the computer software application being developed.

As is shown in FIG. 7, method 106 is used according to the present invention to provide on-demand help testing with an on-demand-help-testing-module 58. To create a help file, the on-demand-help-testing-module 58 saves help information created by the help-topic-creation-module 54 in a temporary file at step 108. In an illustrative embodiment of the present invention, the help information is saved in a Rich Text Format (RTF) in a temporary file. The Rich Text Format is known to those skilled in the art. However, other formats, can also be used. Using the object properties of the graphical controls in the dialog box, the on-demand-help-testing-module 58 dynamically constructs an array of control IDs and Help IDs at step 110.

If necessary at step 112, the attributes of the dialog box are modified in the dialog object data structure (Table 2) at step 114. The modifications include ensuring that the context Help question mark (?) graphical button appears in the title bar displayed by the Windows operating system. The on-demand-help-testing-module 58 then calls the Microsoft Help Workshop system to compile the RTF file and array of control IDs and Help IDs into a help file that can be used to display the help information at step 116. However, other applications could also be used to compile the help file. The help file can be used with the dialog-box-help-editor 46 to test context-sensitive help functionality without executing the computer software application being developed.

As is shown in FIG. 8, context-sensitive help is tested using the help file and the dialog-box-help-editor 46 with method 118. When a graphical control in a dialog box is selected for a context-sensitive help function residing in the saved help file at step 120, the dialog-box-help-editor 46 will receive a context-sensitive help message sent by the operating system. When the dialog-box-help-editor 46 receives a context-sensitive help message, the editor 46 passes the message to the on-demand testing module 58. The on-demand testing module 58 calls the Windows Help system at step 122, and passes it a pointer to the array of control IDs and Help IDs saved in the help file at step 116. Subsequently, the Windows Help system displays at step 124 the appropriate help topic for the selected graphical control object in a pop-up testing window. The context-sensitive help functions are tested without executing the computer software application in which they will be included. An illustrative embodiment of the present invention allows for creating and testing of the context-sensitive help functions before the computer software application in which they will be included is complete by interfacing with the operating system and receiving context-sensitive help messages in the dialog-box-help-editor 46. In an alternative embodiment of the present invention, the dialog-box-help-editor 46 displays the appropriate help topic for the control in a pop-up window for a user without operating system interactions or using the Windows Help System.

Methods 106 and 118 provide an advantage for developing and testing context-sensitive help functions that will be used by a computer software application. Instead of merely displaying a help topic in a pop-up window, the dialog-box-help-editor 46, implements and uses context-sensitive help in the same manner the finished computer software application will use (e.g., receiving a message to display a help topic). This allows a help writer to test the implementation of context-sensitive help functions after they are created and observe how the context-sensitive help function will behave in the finished application without executing the finished application.

Dialog-box-code-generation-module

The dialog-box-help-editor 46 uses a dialog-box-code-generation-module 60 to generate source code for a context-sensitive help function at step 44. The dialog-box-code-generation-module 60 generates header files and help data structures (e.g., arrays of the Help IDs generated) required for implementing context-sensitive help in an application. Since the dialog-box-help-editor 46 stores the properties for the controls in a control object map, it is relatively easy for it to generate help header files and help data structures in multiple formats by simply filtering the data in the control object map using the dialog-box-code-generation-module 60.

As is shown in FIG. 9, a method 126 according the present invention is used by the dialog-box-code-generation-module 60 to generate code for context-sensitive help functions. The dialog-box-code-generation-module 60 displays the help header and help data structures in an editing window at step 128. The help header and help data structures can be modified in the editing window. The dialog-box-code-generation-module 60 checks at step 130 if every graphical control object in the control object map is to be included in the help header and help data structure(s). If so, at step 130 every graphical control object in the control object map is used to generate the help header and help data structure(s) at step 132. If not, just those dialog boxes that have controls selected are used at step 134. This step allows graphical controls which are not needed by the computer software application to be removed (e.g., graphical controls for optional software components). In an alternative embodiment of the present invention, less than every graphical control in the control object map and less than all controls selected can be used to generate the help header files and help data structures.

The dialog-box-code-generation-module 60 checks at step 136 if a single help data structure for all of the located dialog boxes is to be created. If so, at step 138, a single help data structure is created for all located dialog boxes. If not, an individual help data structure for each located dialog box is created at step 140. This step allows multiple dialog boxes to use the same control IDs and Help Ids. In an alternative embodiment of the present invention, the single help data structure can contain less than all of the located dialog boxes, or an individual data structure is not created for each located dialog box (i.e., one or more located dialog boxes are skipped).

In an illustrative embodiment of the present invention controls that have default help topics (e.g., the "OK" or "CANCEL" buttons) are included in the generated help header files and help data structures when the default help topics have been overridden. This feature allows a help writer to alter the default help topic information. In an alternative embodiment of the present invention, controls that have default help topics which are not altered are also included.

If a help writer specifies a help header file in the computer software application that contains control IDs, the dialog-box-code-generation-module 60 is able to automatically substitute control ID numeric values with their mnemonic equivalent for a context-sensitive help function. Dialog box templates typically contain only numeric control ID values. As is known in the art, it is considered good programming practice to use mnemonic identifiers (e.g., IDC₋₋ BUTTON) in source code instead of actual numeric values (e.g., 100, where IDC₋₋ BUTTON=100).

Once the computer source code for context-sensitive help have been generated by the dialog-box-help-editor 46, the help header files and help data structures can be used by software developers as the development of a computer software application is completed. This helps the help writers and software developers coordinate their changes and makes the software development more efficient and less prone to errors.

The method 34 and editor 46 of the illustrative embodiment of this present invention provides the following advantages. If dialog boxes or graphical controls change during the development process, the dialog-box-help-editor 46 notes the changes and informs a help writer. The dialog-box-help-editor 46 can then easily regenerate new help source code to reflect the changes. If multiple dialog boxes use the same control IDs, the dialog-box-help-editor 46 can generate one help array per dialog box to circumvent this problem. The dialog-box-help-editor 46 allows a help writer to associate a single Help ID with multiple controls in one or more dialog boxes. The dialog-box-help-editor 46 notes which controls have default help topics, and checks if a help writer has overridden the default help topics. Since the dialog-box-help-editor 46 extracts dialog box templates from executable and resource files, it has access to and can display any dialog boxes that have been already created. The computer software application containing the dialog boxes need not be executed to use the dialog-box-help-editor 46. The dialog-box-help-editor 46 allows context-sensitive help to be dynamically implemented by a help writer. Since the implementation and execution is the same in the dialog-box-help-editor 46 as it is in the finished application, the help writer can test the context-sensitive help functionality as well as examine the help information created. The dialog-box-help-editor 46 manages all of the Help IDs in a software application being developed so there is no confusion between help writers and software developers over Help IDs, etc.

It should be understood that the programs, processes, and methods described herein are not related or limited to any particular type of computer apparatus, unless indicated otherwise. Various types of general purpose or specialized computer apparatus may be used with or perform operations in accordance with the teachings described herein.

In view of the wide variety of embodiments to which the principles of our invention can be applied, it should be understood that the illustrated embodiments are exemplary only, and should not be taken as limiting the scope of our invention. Rather, we claim as our invention all such embodiments as come within the scope and spirit of the following claims and equivalents thereto. 

We claim:
 1. A method for testing a context-sensitive help system of a computer software application without executing the computer software application, the method comprising:providing a computer software application, wherein the computer software application comprises plural dialog boxes, and wherein a dialog box comprises one or more graphical control objects; associating context-sensitive help information with the graphical control objects of the computer software application, wherein the context-sensitive help information comprises one or more help text descriptions, and wherein the textual context-sensitive help information further comprises help identifiers that index the help text descriptions; creating a map of the graphical control objects to the help identifiers; creating a help file comprising the context-sensitive help information and the map; without executing the computer software application,displaying a dialog box of the computer software application, resulting in the display of one or more graphical control objects of the dialog box; receiving a context-sensitive help information request for a graphical control object of the displayed dialog box; and in response, passing a reference to the map to an operating system help display system, resulting in the display of the requested context-sensitive help information based upon the help file.
 2. A computer-readable storage medium having stored therein computer executable instructions for performing the method of claim
 1. 3. A computer-readable medium having computer-executable modules comprising:a dialog box extraction module for locating one or more dialog boxes of a computer software application; a dialog box creation and display module for preparing a located dialog box for display and displaying the located dialog box, wherein the dialog box encapsulates one or more control objects; a dialog box data organization module for managing the located dialog box, wherein the dialog box data organization module organizes data for the one or more control objects of the located dialog box, and wherein the dialog box data organization module saves control object data to a control object map; a help topic creation module for associating context-sensitive help information with the one or more control objects of the located dialog box as used in the located dialog box; and an on-demand help testing module for presenting the associated context-sensitive help information for the one or more control objects of the located dialog box without executing the computer software application.
 4. A method for testing a context-sensitive help system of a computer software application without executing the computer software application, the method comprising:providing a computer software application with one or more software components; providing context-sensitive help information that describes the one or more software components; mapping the one or more software components to the context-sensitive help information, resulting in a map of software components to context-sensitive help information; preparing a help file comprising the map and the context-sensitive help information; and based upon the help file, testing a context-sensitive help system of the computer software application by simulating interaction between the computer software application and the context-sensitive help system without executing the computer software application.
 5. A computer-readable storage medium having stored therein computer executable instructions for performing the method of claim
 4. 6. The method of claim 4 wherein the computer software application is incapable of execution in its current form.
 7. The method of claim 6 wherein the computer software application is under development.
 8. The method of claim 4 wherein the software components are graphical control objects of dialog boxes of the computer software application.
 9. The method of claim 4 wherein the context-sensitive help information comprises one or more context-sensitive help information text descriptions, and wherein help information identifiers index the context-sensitive help information text descriptions.
 10. The method of claim 9 wherein mapping comprises:providing a software component identifier for each of one or more software components; and associating each software component identifier with a help information identifier.
 11. The method of claim 4 wherein the help file is temporary.
 12. The method of claim 4 wherein the testing results in display of context-sensitive help information for one or more of the software components of the computer software application.
 13. A method for testing a context-sensitive help system of a computer software application without executing the computer software application, the method comprising:providing a computer software application with one or more software components; providing context-sensitive help information that describes the one or more software components; mapping the one or more software components to the context-sensitive help information, resulting in a map of software components to context-sensitive help information; preparing a help file comprising the map and the context-sensitive help information; and based upon the help file, testing a context-sensitive help system of the computer software application without executing the computer software application, wherein testing comprises:displaying one or more software components of the computer software application; and receiving a request to display context-sensitive help information for a software component; and based upon the help file, displaying the requested context-sensitive help information.
 14. The method of claim 13 whereinan operating system help display system facilitates the displaying the requested context-sensitive help information based upon the help file.
 15. A computer-readable storage medium having stored therein computer executable instructions for performing the method of claim
 14. 16. A method for simulating the behavior of a context-sensitive help system of a computer software application without executing the computer software application, the method comprising:providing a help file comprising context-sensitive help information for one or more software components of a computer software application; without executing the computer software application,displaying a software component of the computer software application; receiving a help request for the displayed software component of the computer software application; and reacting to the help request based upon the help file.
 17. A computer-readable storage medium having stored therein computer executable instructions for performing the method of claim
 16. 18. The method of claim 16 wherein the computer software application is incapable of execution in its current form.
 19. The method of claim 18 wherein the computer software application is under development.
 20. The method of claim 16 wherein the computer software application comprises plural dialog boxes, wherein a dialog box comprises one or more graphical control objects, and wherein the displayed software component is a graphical control object within a dialog box.
 21. The method of claim 20 further comprising:before displaying, modifying the dialog box to prepare it for display.
 22. The method of claim 16 further comprising:after displaying, selecting by a user the displayed software component of the computer software application.
 23. The method of claim 22 further comprising:after selecting, sending by an operating system a help request for the selected software component.
 24. The method of claim 16 wherein reacting comprises passing a reference to a location within the help file to an operating system help display system.
 25. The method of claim 24 wherein the help file further comprises a map of software components to context-sensitive help information, wherein the reference comprises a pointer to the map, and wherein passing occurs through an interface of the operating system help display system.
 26. A computer-readable storage medium having stored therein computer executable instructions for performing the method of claim
 25. 